<template>
<div class="layerRtb layerRtb-threecolumn">
    <three-title :title="{name:'新增服务项'}"></three-title>
    <div class="layerRtb-scroll thinScroll" v-scrollHeight = "10">
        <div class="editor-container">
            <UE :content=content1 :config=config ref="ue" :id=ueid></UE>
        </div>
    </div>
</div>
</template>

<script>
import UE from '../../../../../Common/Components/ueditor/index.vue'
export default {
    components: {
        UE
    },
    data () {
        return {
            content1: '这里是UE测试1',
            ueid: 'container', // 不同编辑器必须不同的id
            config: {
                initialFrameWidth: null,
                initialFrameHeight: $('body').height() - 250
            }
        }
    },
    created () {
        // this.initUE()
    },
    methods: {
        // initUE () {
        //     /* eslint-disable-next-line */
        //     UE.delEditor('B014') // 在调用初始化方法的时候，调用下del方法
        //     /* eslint-disable-next-line */
        //     var ue = UE.getEditor('B014')
        // },
        getUEContent () {
            let content = this.$refs.ue.getUEContent()
            console.log(content)
        }
    }
}
</script>
